package com.zhiyou.crowdfunding;

import com.zhiyou.crowdfunding.util.JwtUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.zhiyou.crowdfunding.mapper")
public class CrowdfundingApplication {
    /**
     * 新建自己的分支并推送
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(CrowdfundingApplication.class, args);
    }

    @Bean
    public JwtUtil getJwtUtil(){
        return new JwtUtil();
    }
}
